//
//  UIImage+XL.m
//  传智微博
//
//  Created by zhangxiaoliang on 14-7-5.
//  Copyright (c) 2014年 itcast. All rights reserved.
//

#import "UIImage+XL.h"

@implementation UIImage (XL)

+ (instancetype)resizableImage:(NSString *)name
{
    UIImage *image = [UIImage imageNamed:name];
    CGFloat width = image.size.width * 0.5;
     CGFloat height = image.size.height * 0.5;
    
     return [image resizableImageWithCapInsets:UIEdgeInsetsMake(height, width, height, width) resizingMode:UIImageResizingModeStretch];
}
@end
